Repository navigation
[GLB-182, GLB-244] fix: Sentry 전송 전 인증 정보 제거와 비로그인 favicon 리다이렉트 수정 - #371
Merged
Merged
Conversation
- sendDefaultPii가 켜져 있어 요청 쿠키와 콜백 URL의 쿼리가 그대로 전송될 수 있었음 - 에러·트랜잭션 모두 같은 함수로 지우도록 beforeSend와 beforeSendTransaction에 연결
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
📝작업 내용
GLB-182
apps/web/src/utils/sentryScrub.ts에scrubSensitiveData를 추가했습니다. 이벤트를 보내기 전에 아래를 처리합니다.request.cookies삭제cookie·set-cookie·authorization삭제request.url,request.query_string(문자열·배열·객체), breadcrumb의url·to·from에서accessToken·access_token·token·code쿼리 값을[Filtered]로 바꿈sentry.server.config.ts)·edge(sentry.edge.config.ts)·클라이언트(instrumentation-client.ts) 세 곳의beforeSend,beforeSendTransaction에 연결했습니다.sendDefaultPii: true는 그대로 뒀습니다. IP 등 다른 정보는 계속 보내고, 인증 정보만 지웁니다.false로 바꿀지는 팀에서 정하면 됩니다.GLB-244 (
apps/web/src/middleware.ts)PUBLIC_PATHS에/favicon.svg,/favicon.ico를 추가했습니다.GET /favicon.svg,/favicon.ico가 둘 다307 → /login이었습니다.GLB-181은 이 PR에 없습니다
POST /monitoring에 요청해보니, 개발 서버·운영 모두/login으로 리다이렉트되지 않았습니다.401 {"detail":"bad envelope authentication header",…}로 응답했습니다(임의 값으로 보낸 요청이라 401).확인
sentryScrub.test.ts5개 통과(code·토큰 마스킹, 쿠키·헤더 삭제, 객체 쿼리·breadcrumb, 요청 없는 이벤트)turbo run typecheck lint:check test, 빌드: 통과/favicon.svg→ 200/favicon.ico→ 404 (파일 없음, 리다이렉트 안 함)/record→ 307/login(보호 경로는 그대로)💬리뷰 요구사항(선택)
@coderabbitai ignore
🤖 Generated with Claude Code